revdb_disconnect
Type
function
Summary
Executes the revCloseDatabase command.
Syntax
revdb_disconnect(<databaseID>)
Description
Use the revdb_disconnect function to cleanly log off from a database.
Evaluating the revdb_disconnect function has the same effect as executing the revCloseDatabase command. The only difference is that one is a function call and the other is a command.
The revdb_disconnect function is part of the Database library. To ensure that the function works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure both the "Database" library checkbox and those of the database drivers you are using are checked.
Parameters
Name | Type | Description |
---|---|---|
databaseID | The number returned by the revOpenDatabase function when the database was opened. |
Examples
get revdb_disconnect(savedBudgetDB)
Related
command: revCloseCursor, revCloseDatabase
control structure: function
glossary: Standalone Application Settings, database, command, standalone application, execute, function call, LiveCode custom library
library: Database library
Compatibility and Support
Introduced
LiveCode 1.1
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile